package com.haozi.ehub.entity.entities;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 管理员的权限表
 * </p>
 *
 * @author terry
 * @since 2020-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AuthInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "auth_id",type = IdType.ASSIGN_UUID)
    private String authId;

    private String authName;

    private String authCode;

    /**
     * 权限备注
     */
    private String authRemark;

    /**
     * 权限类型1：admin，0：user
     */
    private Integer type;

    @TableField(fill= FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill= FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(select=false,fill = FieldFill.INSERT)
    private Integer logicDelete;

}
